package com.byb.server.service;

import com.byb.server.service.dto.OtherSafeguardDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing OtherSafeguard.
 */
public interface OtherSafeguardService {

    /**
     * Save a otherSafeguard.
     *
     * @param otherSafeguardDTO the entity to save
     * @return the persisted entity
     */
    OtherSafeguardDTO save(OtherSafeguardDTO otherSafeguardDTO);

    /**
     *  Get all the otherSafeguards.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<OtherSafeguardDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" otherSafeguard.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    OtherSafeguardDTO findOne(Long id);

    /**
     *  Delete the "id" otherSafeguard.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the otherSafeguard corresponding to the query.
     *
     *  @param query the query of the search
     *  
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<OtherSafeguardDTO> search(String query, Pageable pageable);
}
